let parent = {

    name: 'Tom',
    age: 40,
    like:[1,2]
}


function clone(){

    let clone =Object.create(obj)
    clone.getLike =function(){

        return this.like
    }
    return clone
}



let child =clone(parent)